package com.situ.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.situ.mvc.entity.Teacher;

@Controller
@RequestMapping(value = "/teacher")
public class TeacherController {
	
	@RequestMapping(value = "/getAddTeacherPage")
	public String getAddTeacherPage() {
		return "teacher_add";
	}
	
	@RequestMapping(value = "/addTeacher")
	public String name(Teacher teacher,Model model){
		model.addAttribute("teacher", teacher);
		return "teacher_info";
	}
}
